home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / glibc108.gz / glibc108 / glibc-1.08.1 / manual / examples / atexit.c < prev    next >
C/C++ Source or Header  |  1994-02-16  |  158b  |  16 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void 
  5. bye (void)
  6. {
  7.   puts ("Goodbye, cruel world....");
  8. }
  9.  
  10. int
  11. main (void)
  12. {
  13.   atexit (bye);
  14.   exit (EXIT_SUCCESS);
  15. }
  16.